package homework;

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 *
 * @author Administrator
 */
public class ArrayList { private String name;
    private String phone;
    private String email;

    public String getname() {
        return name;
    }

    public String getphone() {
        return phone;
    }

    public String getemail() {
        return email;
    }

    public void setname(String  name) {
        this.name = name;
    }

    public void setemail(String email) {
        this.email = email;
    }

    public void setphone(String phone) {
        this.phone = phone;
    }
}


class peopleA extends ArrayList {

    public static void main(String[] args) {
        peopleA euro = new peopleA();
        euro.setname("奥特曼");
        euro.setemail("1323466@.com");
        euro.setphone("911");
        System.out.println("名字是:" + euro.getname());
        System.out.println("邮箱是:" + euro.getemail());
        System.out.println("电话是:" + euro.getphone());



    }
}
class peopleB extends ArrayList {

    public static void main(String[] args) {
        peopleB euro = new peopleB();
        euro.setname("葫芦外");
        euro.setemail("165462124864");
        euro.setphone("68686868。");
        System.out.println("名字是:" + euro.getname());
        System.out.println("邮箱是:" + euro.getemail());
        System.out.println("电话是:" + euro.getphone());



    }
}
class peopleC extends ArrayList {

    public static void main(String[] args) {
        peopleC euro = new peopleC();
        euro.setname("黑猫警长");
        euro.setemail("15164141@。，com");
        euro.setphone("110");
        System.out.println("名字是:" + euro.getname());
        System.out.println("邮箱是:" + euro.getemail());
        System.out.println("电话是:" + euro.getphone());



    }
}





